import request from '@/utils/request'

//预约列表
export function getappointmentlist(query){
  return request({
    url:'/appointment/list',
    method:'get',
    params:query
  })
}

// 预约详情
export function getappointmentdetail(id) {
  return request({
    url: '/appointment/'+id,
    method: 'get'
  })
}

// 预约详情更改
export function appointmentdetailChange(data) {
  return request({
    url: '/appointment/edit',
    method: 'put',
    data:data
  })
}


// 个案咨询添加
export function addRecord(data) {
  return request({
    url: '/record/add',
    method: 'post',
    data:data
  })
}

// 咨询列表详情
export function recordInfo(query) {
  return request({
    url: '/record/list',
    method: 'get',
    params:query
  })
}

// 咨询列表更改
export function Modify(data) {
  return request({
    url: '/record/edit',
    method: 'put',
    data:data
  })
}
// 咨询删除
export function Delete(id){
  return request({
    url: '/record/delete/'+id,
    method: 'delete',
  })
}
// 发送消息
export function sendMessge(data){
  return request({
    url: '/system/message/add',
    method: 'post',
    data:data
  })
}

//查找学生信息
export function findStudentInfo(id){
  return request({
    url:'/system/student/'+id,
    method:'get',
  })
}

//请求班级列表
export function classList(query){
  return request({
    url:'/student/class/list',
    method:'get',
    params:query
  })
}

//咨询师列表
export function consultant(query){
  return request({
    url:"/system/teacher/list",
    method:"get",
    params:query,
  })
}

// 获取登录用户信息
export function obtainLoginUserInformation(query){
  return request({
    url:'/getInfo',
    method:'get',
    params:query
  })
}
